<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>伪类选择器-伪类target</title>
    <style>
        /* 
            E:target 可以为锚点目标元素添加样式，当目标元素被触发为当前锚链接的目标时，调用此伪类样式 
        */

        h2:target {
            color: red;
        }
    </style>
</head>
<body>
    
</body>
</html>